package com.bobi.tfca.model.vo;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;

/**
 * 群实体
 * @author 李文发
 * @date 2024/4/2
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "群")
public class ChatRoom implements Serializable {

    @Serial
    private static final long serialVersionUID = -8821985327644598468L;

    @ApiModelProperty(value = "群id")
    // 群id
    private Integer groupId;
    @ApiModelProperty(value = "群名称")
    // 群名称
    private String groupName;
    @ApiModelProperty(value = "群主id")
    // 群主id
    private Integer ownerId;
    // 群主姓名
    private String ownerName;
    @ApiModelProperty(value = "群人数")
    // 群人数
    private Integer groupNum;
    @ApiModelProperty(value = "当前用户在此群是否有未读消息")
    private Integer unreadMessages;
    @ApiModelProperty(value = "群头像")
    private String groupHead;
}
